FROM openjdk:latest
VOLUME /tmp
ADD shop-0.0.1-SNAPSHOT.jar app.jar
ENTRYPOINT ["java","-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8012","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
# 告诉Docker服务端暴露的端口，在容器启动时需要通过 -p 做端口映射
EXPOSE 8012
#设置时区
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime